Norm 3 V 3 L Lbl I ClrText " " Locate 9,1,"VIDAS" Locate 11,4,V 0 C 0 K ClrText {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} List 1 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} List 2 Fill(0,Mat Z) 4 Y 11 X If V=0 Then "xxxxxGAMExxxOVERxxxxx" Stop IfEnd If L=2 Then For 5 P To 17 1 Mat Z[4,P] Locate P,4,"#" Next 2 Y IfEnd If L=3 Then For 2 Q To 6 1 Mat Z[Q,7] 1 Mat Z[Q,15] Locate 7,Q,"#" Locate 15,Q,"#" Next 1 O 0 E 0 A 0 B 3 S Lbl P Int (18Ran#+2) P Int (4Ran#+2) Q Mat Z[Q,P]=1 Goto P Locate P,Q,(S-1) 2 While 1 B 0 Or A 0 1 C Getkey K If X=P And Y=Q Then S+2 S If S=21 Then L+1 L Goto I IfEnd Getkey K Goto P IfEnd Lbl C X+A X Y-B Y O=S 1 J Getkey K If J=1 And List 1[O] 0 Then Locate List 1[O],List 2[O]," " 0 Mat Z[List 2[O],List 1[O] IfEnd Getkey K If X>0 And X<22 And Y>0 And Y<8 Then Locate X,Y,"O" Else V-1 V Goto I IfEnd Getkey K If Mat Z[Y,X]=1 And C=1 Then V-1 V Locate X,Y,"X" Goto I IfEnd Getkey K 1 Mat Z[Y,X] X List 1[O] Y List 2[O] O=S 0 O O+1 O Getkey K If K=27 Or K=53 Then 0 B A=0 1 A IfEnd If K=38 Or K=73 Then 0 B A=0 -1 A IfEnd Getkey K If K=28 Or K=64 Then 0 A B=0 1 B IfEnd If K=37 Or K=62 Or K=63 Then 0 A B=0 -1 B IfEnd Getkey K WhileEnd
|